#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QPushButton>
#include<QPixmap>
#include<QLabel>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

//新的绘制
protected:
    void paintEvent(QPaintEvent*event)override;


//创建开始与关闭按钮
private slots:
    void startGame();
    void closeGame();
private:
    QPushButton*startButton;
    QPushButton*closeButton;
    QPixmap background;//背景图
private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
